import type { LoginParams, LoginRes, Profile } from "@/types/user"
import { request } from "@/utils/reuqest"



// 登录请求
export const loginApi = (data: LoginParams)=>{
  return request<LoginRes>('/park/login','post',data)
}


// 登录成功-查询登录人用户、角色和权限信息
export const getProfileAPI = ()=>{
  return request<Profile>('/park/user/profile')
}
